﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="profile.aspx.vb" Inherits="Prototype.profile" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <br />
<asp:Button ID="Button1" runat="server" PostBackUrl="~/editProfile.aspx" 
    Text="Click to edit your profile" />
<br />
<br />

<br />
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataSourceID="SqlDataSource1">
        <Columns>
            <asp:ImageField DataImageUrlField="UserPicture" DataImageUrlFormatString="{0}">
                <ControlStyle Height="200px" Width="200px" />
            </asp:ImageField>
            <asp:BoundField DataField="TravellerName" HeaderText="TravellerName" 
                SortExpression="TravellerName" />
            <asp:BoundField DataField="FirstName" HeaderText="FirstName" 
                SortExpression="FirstName" />
            <asp:BoundField DataField="LastName" HeaderText="LastName" 
                SortExpression="LastName" />
            <asp:BoundField DataField="Gender" HeaderText="Gender" 
                SortExpression="Gender" />
            <asp:BoundField DataField="DateOfBirth" HeaderText="DateOfBirth" 
                SortExpression="DateOfBirth" />
            <asp:BoundField DataField="EmailId" HeaderText="EmailId" 
                SortExpression="EmailId" />
        </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:booksConn %>" 
        ProviderName="<%$ ConnectionStrings:booksConn.ProviderName %>" 
        
    SelectCommand="SELECT [TravellerName], [FirstName], [LastName], [Gender], [UserPicture], [DateOfBirth], [EmailId] FROM [UserProfile]">
    </asp:SqlDataSource>
</asp:Content>
